#ifndef _DB_ARTIST_H_
#define _DB_ARTIST_H_

typedef struct tagArtistIndex
{
	char artist[MAXID3ITEM];
	unsigned int count;
	unsigned int offset;
}ARTISTINDEX;

int artist_build(void);
int get_artists(unsigned int offset, RECID3ITEM* artists, unsigned int cnt);
int get_audio_count_of_artist(RECID3ITEM artist);
int get_audio_name_by_artist(char* artist, unsigned int offset, RECUTF8NAME* fname, unsigned int cnt);
int get_audio_record_by_artist(char* artist, unsigned int offset, AUDIORECORD* records, unsigned int cnt);
int delete_artist(char* path);

#endif
